<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
<head>
	<%@ include file="/common/taglibs.jsp"%>
		<title>修改资料</title>
	<%@ include file="/common/meta.jsp"%>
</head>
<body>
     <!-- begin #page-loader -->
	<div id="page-loader" class="fade in"><span class="spinner"></span></div>
	<!-- end #page-loader -->
	
    <div id="page-container" class="fade page-sidebar-fixed page-header-fixed">
	
		<%@ include file="/common/header.jsp"%>
		<%@ include file="/common/slider.jsp"%>
		<div id="content" class="content">
		    <!-- BEGIN CONTENT HEADER-->
		    <ol class="breadcrumb pull-right">
				<li><a href="javascript:;"><fmt:message key="sys.healthcervix"/></a></li>
				<li><a href="javascript:;">系统设置</a></li>
				<li class="active">修改资料</li>
			</ol>
			<h1 class="page-header">
				修改资料  <!-- <small><fmt:message key="sys.healthcervix"/></small> -->
			</h1>
			
			<div class="row">
				<div class="col-md-12">
					<div class="panel panel-inverse">
						<div class="panel-body">
							<form id="addForm" name="addForm" action="#" class="form-horizontal">
								<input type="hidden" name="id" id="id" value="${userInfo.id}"/>
								<div class="form-group">
			                        <label class="col-md-5 control-label ui-sortable">用户名<span class="required">*</span></label>
			                        <div class="col-md-7 ui-sortable">
			                        	<input type="text" name="userName" id="userName" value="${userInfo.userName}" class="form-control"  style="width: 50%" readonly/>
			                        </div>
		                    	</div>
		                    	<c:if test="${null != userInfo.userNum and '' != userInfo.userNum}">
		                    	<div class="form-group">
			                        <label class="col-md-5 control-label ui-sortable">工号<span class="required">*</span></label>
			                        <div class="col-md-7 ui-sortable">
			                        	<input type="text" name="userNum" id="userNum" value="${userInfo.userNum}" class="form-control"  style="width: 50%" readonly/>
			                        </div>
		                    	</div>
		                    	</c:if>
		                    	<div class="form-group">
			                        <label class="col-md-5 control-label ui-sortable">手机<span class="required">*</span></label>
			                        <div class="col-md-7 ui-sortable">
			                        	<input type="text" name="phone" id="phone" value="${userInfo.phone}" class="form-control" maxlength="20" 
			                        	onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this)" onblur="this.v();"
			                        	style="width: 50%"/>
			                        </div>
		                    	</div>
		                    	<div class="form-group">
			                        <label class="col-md-5 control-label ui-sortable">姓名<span class="required">*</span></label>
			                        <div class="col-md-7 ui-sortable">
			                        	<input type="text" name="realName" id="realName" value="${userInfo.realName}" class="form-control" placeholder="请输入真实姓名" maxlength="50" style="width: 50%"/>
			                        </div>
		                    	</div>
		                    	<div class="form-group">
			                        <label class="col-md-5 control-label ui-sortable">邮箱&nbsp;&nbsp;</label>
			                        <div class="col-md-7 ui-sortable">
			                        	<input type="text" name="email" id="email" value="${userInfo.email}" class="form-control" placeholder="请输入邮箱" maxlength="100" style="width: 50%"/>
			                        </div>
		                    	</div>
		                    	<div class="form-group">
				                        <label class="col-md-5 control-label ui-sortable">地址&nbsp;&nbsp;</label>
				                        <div class="col-md-7 ui-sortable">
											<input type="text" name="address" id="address" class="form-control"  value="${userInfo.address}" placeholder="请输入地址" maxlength="200" style="width: 50%"/>
				                        </div>
			                    </div>
			                    <div class="form-group">
			                        <label class="col-md-5 control-label ui-sortable">角色<span class="required">*</span></label>
			                        <div class="col-md-7 ui-sortable">
			                        	<input type="text" name="roleName" id="roleName" value="${roleName}" class="form-control" placeholder="请输入角色" style="width: 50%" readonly/>
			                        </div>
		                    	</div>
		                    	<div class="form-group-bottom">
			                        <label class="col-md-5 control-label ui-sortable"></label>
			                        <div class="col-md-7 ui-sortable">
			                        	<button type="button" class="btn btn-sm btn-primary" id="editUserInfo">修改</button>
										<button class="btn btn-sm btn-primary" type="button" onclick="javascript:window.history.back(-1);">取消</button>
			                        </div>
		                    	</div>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<%@ include file="/common/footer.jsp" %>
	<script src="${ctx}/assets/js/jquery.dataTables.js"></script>
	<script src="${ctx}/assets/js/DT_bootstrap.js"></script>
	<script type="text/javascript" src="${ctx}/js/user/changeUserInfo.js?v=${pVersion}"></script> 
	<!-- END PAGE LEVEL SCRIPTS -->
	<script>
	
	jQuery(document).ready(function() {       
		ChangeManaged.init();
	});
	</script> 
	
</body>
</html>